<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport('joomla.application.component.view');
class DebateViewDebate extends JView
{
	public function display($tpl = null)
    {
        JToolBarHelper::title( JText::_( 'Debate User Manager' ), 'generic.png' );
        JToolBarHelper::customX( 'approve', 'approve', 'approve', 'Approve', true);
        JToolBarHelper::customX( 'pending', 'pending', 'pending', 'Pending', true);
        JToolBarHelper::customX( 'rejected', 'rejected', 'rejected', 'Rejected', true);
        JToolBarHelper::editListX();
       // JToolBarHelper::addNewX();
 
        // Get data from the model
		$model = &$this->getModel();
        $items = $model->getUsers();
 
        $this->assignRef( 'items', $items );
 
        parent::display($tpl);
    }
}